package com.qiaofang.common.constant;

public enum CommonResponseCode {

    /**
     * 成功
     */
    RC_SUCCESS("1", "success"),
    /**
     * 参数异常
     */
    RC_PARAMETER_ERROR("error001", "parameter invalid"),
    /**
     * 系统报错
     */
    RC_EXCEPTION_ERROR("error002", "service exception"),

    /**
     * 没有登录
     */
    RC_NOT_LOGIN_ERROR("error003", "not login");

    private String responseCode;
    private String responseMessage;

    CommonResponseCode(String responseCode, String responseMessage) {
        this.responseCode = responseCode;
        this.responseMessage = responseMessage;
    }

    public String getResponseCode() {
        return responseCode;
    }

    public void setResponseCode(String responseCode) {
        this.responseCode = responseCode;
    }

    public String getResponseMessage() {
        return responseMessage;
    }

    public void setResponseMessage(String responseMessage) {
        this.responseMessage = responseMessage;
    }
}
